import Vue from 'vue'
import App from './views/index.vue'

//引入路由插件
import router from './router/index'
//引入数据管理库
import store from './store/index'

//引入Vant组件
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//引入Vant的懒加载插件
import { Lazyload } from 'vant';
Vue.use(Lazyload);

//引入element组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//引入全局组件
import Components from './components';
Vue.use(Components)

new Vue({
    //实例注入
    router,
    store,
    render(createElement){
        return createElement(App)
    }
}).$mount('#root')